# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-calculator-plugin
pkgver=0.7.2
pkgrel=0
pkgdesc="Calculator plugin for the Xfce4 panel"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-calculator-plugin"
arch="all"
license="GPL-2.0"
makedepends="xfce4-panel-dev libxfce4ui-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
98fa51ff0afbb09e3066f629113f6a584c5afd9228c87ee67afd7a56b065060ece16ee646ec6a2c685907a0d9733cba19cbf25bc034e009a013af2122155cc2c  xfce4-calculator-plugin-0.7.2.tar.bz2
"
